import Vue from "vue";
import App from "@/app/app";
import router from "./router";
import store from "./store";
import Vuex from "vuex";
import VueWechatTitle from "vue-wechat-title";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import "./styles/reset.less";
import "./styles/common.less";
import { i18n } from "@/utils/language";
import "@/utils/vue-filter";
import { ValidationUtil } from "@/utils/validation-util";

Vue.prototype.validationUtil = ValidationUtil;
Vue.config.productionTip = false;

Vue.use(Vuex);
Vue.use(Antd);
Vue.use(VueWechatTitle);

router.beforeEach((to, from, next) => {
  next();
});

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount("#app");
